POV-Ray : Newsgroups : povray.general : max_trace_level and objects with ior=1 : Re: max_trace_level and objects with ior=1 Server Time
2 Nov 2024 05:22:07 EDT (-0400)
  Re: max_trace_level and objects with ior=1  
From: Warp
Date: 19 May 2004 10:02:02
Message: <40ab68da@news.povray.org>
Vaclav Cermak <dis### [at] itamcascz> wrote:
>    I think, that there is no reason why use max_trace_level for objects 
> with ior=1 and no reflection, because there is no way how to reach 
> infinite depth of raytracing, as in the case of glass box with ior != 1.

  Each surface hit and consequent new ray will cause a recursive call.
You don't need an infinite amount of recursions for the program to run
out of stack space: Just put some thousands of transparent surfaces in
a row and trace a ray through them.

  One solution is to use adc_bailout to limit the recursion depth in
glass (supposing the glass filters the rays even a bit).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.